<?php

namespace App\Http\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;

class SaleModel extends Model
{
    public function get_list()
    {
        return DB::table('house')->paginate(5);
    }

    public function get_journal()
    {
        return DB::table('journal')->paginate(2);
    }

   /* public function addjournal($data)
    {
        return  DB::insert("insert into `journal` (`room_id`,`user_id`,`sale_id`,`details`,`time`,`status`,`number`) values 
        ('" . $data['room_id'] . "','" . $data['user_id'] . "','" . $data['sale_id'] . "','" . $data['details'] . "','" . $data['time'] . "','" . $data['status'] . "','" . $data['number'] . "')");
    }*/
}
